﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ex03.GarageLogic
{
    public class VehicleInGarage
    {
        private Vehicle m_Vehicle;
        private VehicleOwner m_VehicleOwner;
        private eVehicleStatus m_VehicleStatus;

        public Vehicle Vehicle
        {
            get { return m_Vehicle; }
        }

        public VehicleOwner VehicleOwner
        {
            get { return m_VehicleOwner; }
        }

        public eVehicleStatus VehicleStatus
        {
            get { return m_VehicleStatus; }
            set { m_VehicleStatus = value; }
        }

        public VehicleInGarage(Vehicle i_Vehicle, VehicleOwner i_VehicleOwner, eVehicleStatus i_VehicleStatus)
        {
            m_Vehicle = i_Vehicle;
            m_VehicleOwner = i_VehicleOwner;
            m_VehicleStatus = i_VehicleStatus;
        }

        public Dictionary<string, string> GetAllProperties()
        {
            Dictionary<string, string> properties = m_Vehicle.GetAllProperties();

            properties.Add("Vehicle Owner Name", m_VehicleOwner.OwnerName);
            properties.Add("Vehicle Owner Phone", m_VehicleOwner.OwnerPhone);
            properties.Add("Vehicle Status", Enum.GetName(typeof(eVehicleStatus), m_VehicleStatus));

            return properties;
        }
    }
}